<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> 
<head id="Head1" runat="server">
    <title>ScrumTime 0.9 Beta 1</title>
    <link rel="shortcut icon" href="<%: Url.Content("~/Content/Images/favicon.ico") %>" type="image/x-icon"/>
    <meta http-equiv="CACHE-CONTROL" content="NO-CACHE"/>

    <link rel="stylesheet" href="<%: Url.Content("~/Content/Css/main.css") %>" type="text/css" />
    <link rel="stylesheet" href="<%: Url.Content("~/Content/Css/cupertino/jquery-ui-1.8.11.custom.css") %>" type="text/css" />
    <link rel="stylesheet" href="<%: Url.Content("~/Content/Css/jquery.jqplot.min.css") %>" type="text/css" />

    <script src="<%: Url.Content("~/Scripts/utils_.js") %>" type="text/javascript" ></script>

    <!--[if IE]><script language="javascript" type="text/javascript" src="<%: Url.Content("~/Scripts/excanvas.min.js") %>"></script><![endif]-->
    <script src="<%: Url.Content("~/Scripts/jquery-1.5.1.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.12.custom.min.js") %>" type="text/javascript" ></script>    
    <script src="<%: Url.Content("~/Scripts/jquery.jqplot.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.logAxisRenderer.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.canvasTextRenderer.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.canvasAxisLabelRenderer.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.canvasAxisTickRenderer.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.dateAxisRenderer.min.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.categoryAxisRenderer.min.js") %>" type="text/javascript" ></script>    
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.enhancedLegendRenderer.min.js") %>" type="text/javascript" ></script>  
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.barRenderer.min.js") %>" type="text/javascript" ></script>    
    <script src="<%: Url.Content("~/Scripts/Plugins/jqplot.pointLabels.min.js") %>" type="text/javascript" ></script>  
    <script src="<%: Url.Content("~/Scripts/Plugins/cookie_plugin.js") %>" type="text/javascript" ></script>    
    <script src="<%: Url.Content("~/Scripts/scrumtime-errors-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-main-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-story-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-task-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-schedule-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-release-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-sprint-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-scrum-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-product-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-dashboard-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-user-1.0.js") %>" type="text/javascript" ></script>
    <script src="<%: Url.Content("~/Scripts/scrumtime-acceptancecriteria-1.0.js") %>" type="text/javascript" ></script>
    
    <script src="<%: Url.Content("~/Scripts/jquery.alerts.js") %>" type="text/javascript"></script>

    <link href="<%: Url.Content("~/Content/Css/jquery.alerts.css")%>" rel="stylesheet" type="text/css" media="screen" />


    <script type="text/javascript" >

        //------------para hacer q nunca se pierda la session----------------
        
        var f_time_out = setTimeout("timed_session()", 30000);
        function timed_session() {
            $.ajax(addURLRamdon("/Home/UpdateSession"));
            f_time_out = setTimeout("timed_session()", 30000);
        }
        //--------------- fin de perder la session --------------------------





        $(function () {
            // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
            $("#dialog:ui-dialog").dialog("destroy");

            $("#dialog-message").dialog({
                modal: true,
                autoOpen: false,
                buttons: {
                    Ok: function () {
                        $(this).dialog("close");
                    }
                }
            });

            $("#dialog-form1:ui-dialog").dialog("destroy");

            $("#dialog-form1").dialog({
                modal: true,
                autoOpen: false,
                height: 200
            });


            $("#dialog-form-changePassword:ui-dialog").dialog("destroy");

            $("#dialog-form-changePassword").dialog({
                autoOpen: false,
                height: 200,
                width: 450,
                modal: true,
                buttons: {
                    "Save": function () {                        
                        change_password();
                    },
                    Cancel: function () {
                        $(this).dialog("close");
                    }
                }
            });


        });

        function ShowMessage(menssage) {
            $("#dialog-message").dialog("open");
            $("#dialog-menssage-label").text(menssage);            
        };


        function ShowForm(data) {
            $("#dialog-form1").dialog("open");
            $("#dialog-form1-spam1").replaceWith(data);
        };


        function clearFields_changePassword() {
            $("#current_password").val('');
            $("#new_password").val('');
            $("#retype_password").val('');
        };

        function show_changePassword() {
            clearFields_changePassword();
            $("#dialog-form-changePassword").dialog("open");
        }

        function change_password() {            
            var oldPassword = $('#current_password').val();
            var newPassword = $('#new_password').val();
            var retypeNewPassword = $('#retype_password').val();

            var url = addURLRamdon('/Home/ChangePassword');
            $.post(url,
            {                                
                oldPassword: oldPassword,
                newPassword: newPassword,
                retypeNewPassword: retypeNewPassword
            },
            function (data) {
                if (verificarError(data)) {
                    $('#dialog-form-changePassword').dialog("close");
                    return;
                }
                $('#dialog-form-changePassword').dialog("close");
            });
        };
	</script>

</head>

<body>  

<%-----------------modal dialog-----------------------%>
<div id="dialog-message" title="Message">
	<p>
        <span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 50px 0;"></span>		
		<label id="dialog-menssage-label"></label>
	</p>	
</div>
<%--------------fin del modal dialog-----------------%>

<%-----------------modal Form-----------------------%>
<div id="dialog-form1" title="Form">
    <span id="dialog-form1-spam1"></span>
</div>
<%--------------fin del modal Form-----------------%>


<div id="dialog-form-changePassword" title="Change Password">
	    <form>
	        <fieldset>
                <label for="current_password">Current</label>
		        <input type="password" name="current_password" id="current_password" class="text ui-widget-content ui-corner-all" />
                <br />
                <label for="user_password">New</label>
		        <input type="password" name="new_password" id="new_password" value="" class="text ui-widget-content ui-corner-all" />
                <br />
                <label for="user_password">Re-type new</label>
		        <input type="password" name="retype_password" id="retype_password" value="" class="text ui-widget-content ui-corner-all" />
	        </fieldset>          
	    </form>
</div>

    <div id="pageHeader"></div>
	<div id="menuBackgroundDiv"></div>
	<div id="pageCenterDiv">
		<div id="pageTitleDiv">			
            <img id="pageLogoGraph" src="<%: Url.Content("~/Content/Images/Logos/logo_graph_48x48.png") %>" height="32px" width="32px" alt="ScrumTime" title="ScrumTime"/>
            <a class="simpleLink" style="font-size:11px;color:#75a22a;" href="#">		 
                <img id="pageLogo" src="<%: Url.Content("~/Content/Images/Logos/ScrumTimeLogo.png") %>" alt="ScrumTime" title="ScrumTime"/>
            </a>
			<div id="pageTagline">scrum project management tool</div>
		</div>
        <div class="loginLink" style="z-index:100;position:absolute;right:30px;top:96px;font-size:12px;">
            <% Html.RenderPartial("LogOnUserControl"); %>
        </div>

        <% Html.RenderPartial("~/Views/Home/CurrentProductAndSprint.ascx"); %>
	
        <div id="main" style="position:absolute;top:88px;margin:0px;left:0px;">
            <div id="mainMenu" style="width:1000px;height:576px;padding:0;margin:0">            
                <ul style="font-size:12px">              
                    <li><a href="Dashboard/Index">Dashboard</a></li>                    
                    <li><a href="Story/BacklogByPriority">Backlog</a></li>
                    <li><a href="Scrum/Index">Scrum</a></li>
                    <li><a href="Schedule/Index">Schedule</a></li>
                    <li><a href="Product/Index">Product</a></li> 
                    <li><a href="User/Index">Team</a></li>
                    <li><a href="MyTasks/Index">My tasks</a></li>
                    <li><a href="Utils/Index">Utilities</a></li>
                </ul>                
            </div>
        </div>        
    </div>
    <% Html.RenderPartial("~/Views/Shared/FooterControl.ascx"); %>

</body>


</html>

